<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript"
	src="resources/js/jquery.FadeWideBgImg.js"></script>
<script type="text/javascript">
	(function($) {
		jQuery(document).ready(function() {
			$('.slideshow').FadeWideBgImg({
				interval : 2000
			});
			
			$(".mainnotice").hover(function(){
				var idx = $(".mainnotice").index(this);
				$(".mainnotice").eq(idx).css("background-color", "#E6E6FA");
			},
			function(){
				var idx = $(".mainnotice").index(this);
				$(".mainnotice").eq(idx).css("background-color", "white");
			});
			
			$(".linktr").hover(function(){
				var idx = $(".linktr").index(this);
				$(".linktr").eq(idx).css("background-color", "#E6E6FA");
			},
			function(){
				var idx = $(".linktr").index(this);
				$(".linktr").eq(idx).css("background-color", "white");
			});
		});
	}(window.jQuery, window));

</script>
<div class="width100per">
	<ul class="slideshow">
		<li><img src="resources/images/hosimg/hos7.jpg" /></li>
		<li><img src="resources/images/hosimg/hos12.jpg" /></li>
		<li><img src="resources/images/hosimg/hos13.jpg" /></li>
		<li><img src="resources/images/hosimg/hos14.jpg" /></li>
		<li><img src="resources/images/hosimg/hos15.jpg" /></li>
	</ul>
</div>
<div class="noticeDiv">
	<table class="noticeTable">
		<tr>
			<td class="noticeTableHeader">공지사항</td>
			<td
				style="border-bottom: 4px #c1daee solid; text-align: right; font-size: 9px"><a
				href="notice.do">+더보기</a></td>
		</tr>
		<c:forEach items="${list}" var="mainNotice">
			<tr class='mainnotice'>
				<td class="noticeDateWidth"><a
					href="noticeDetail.do?notice_id=${mainNotice.notice_id }">${mainNotice.title }</a></td>
				<td>${mainNotice.write_date }</td>
			</tr>
		</c:forEach>
	</table>
</div>
<div class="linkDiv" id="linkDiv">
	<table class="linkTable">
		<tr>
			<td class="linkTableHeader">의료 관련 링크</td>
		</tr>
		<tr class="linktr">
			<td><a href="#"
				onclick="javascript:window.open('http://www.kma.org/index/index.php')">대한
					의사 협회</a></td>
		</tr>
		<tr class="linktr">
			<td><a href="#"
				onclick="javascript:window.open('http://www.kpanet.or.kr')">대한
					약사 협회</a></td>
		</tr>
		<tr class="linktr">
			<td><a href="#"
				onclick="javascript:window.open('http://www.nhis.or.kr/portal/site/main')">국민
					건강 보험 관리 공단</a></td>
		</tr>
		<tr class="linktr">
			<td><a href="#"
				onclick="javascript:window.open('http://www.hira.or.kr/main.do')">건강
					보험 심사 평가원</a></td>
		</tr>
	</table>
</div>

<div class="googleNewsDiv">
	<iframe
		src="http://www.google.com/uds/modules/elements/newsshow/iframe.html?q=의료,의학,병원&rsz=large"
		frameborder="0" width="728" height="90" marginwidth="0"
		marginheight="0"></iframe>
</div>